import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listIntegral(query) {
  return request({
    url: '/integration/integral/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getIntegral(id) {
  return request({
    url: '/integration/integral/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addIntegral(data) {
  return request({
    url: '/integration/integral',
    method: 'post',
    data: data
  })
}

export function addIntegralUser() {
  return request({
    url: '/integration/integral/user/list',
    method: 'post'
  })
}

// 显示数据
export function countNumber() {
  return request({
    url: '/integration/integral/countNumber',
    method: 'get'
  })
}


// 修改【请填写功能名称】
export function updateIntegral(data) {
  return request({
    url: '/integration/integral',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delIntegral(id) {
  return request({
    url: '/integration/integral/' + id,
    method: 'delete'
  })
}

// 删除【请填写功能名称】
export function musicShow() {
  return request({
    url: '/music/show/',
    method: 'get'
  })
}


